package com.heima.controller;

import com.heima.annotation.OperationFill;
import com.heima.dto.pagedto.TransferPageDto;
import com.heima.pojo.Transfer;
import com.heima.result.PageResult;
import com.heima.result.Result;
import com.heima.service.TransferService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@Api(tags = "转派管理")
@RequestMapping()
public class TransferController {

    @Autowired
    private TransferService transferService;
    /**
     * 查询转派列表
     */
    @GetMapping("/system/notice/list/0")
    @OperationFill
    public Result<PageResult> transferList(){
        return Result.success();
    }

    /**
     * 转派管理查询
     * @param
     * @return
     */
    @ApiOperation("转派管理查询")
    @OperationFill
    @GetMapping("/transfer/list")
    public PageResult queryTransferList(TransferPageDto dto){
        log.info("转派管理查询");
        PageResult list=transferService.queryTransferList(dto);
        return list;
    }
}
